<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.selectWidth2 {
	width: 211px;
}

.selectWidth1 {
	width: 298px;
}

.selectedWidth {
	width: 100px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="4" class="t_bar">&nbsp;项目基本信息</td>
	</tr>
	<tr>
		<td nowrap width="20%" align="right"><span class="color_red">*</span>项目名称：</td>
		<td nowrap colspan="3" ><input id="zh_title"
			name="proposal/zh_title" label="项目名称" type="text" maxlength="50"
			class="input_css required" style="width: 88%;" 
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right" valign="middle"><span class="color_red">*</span>项目级别：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="checkbox" class="do " id="advant_01"
				style="vertical-align: middle;" name="domain" label="国际（含港澳台）"
				value="01" /><span style="vertical-align: middle;">国际（含港澳台）</span>
		</label> <label> <input type="checkbox" class="do " id="domain_02"
				style="vertical-align: middle;" name="domain" label="国内"
				value="02" /><span style="vertical-align: middle;">国内</span>
		</label> 
		<input type="hidden" name="proposal/basic/domain_value"
			id="domain_value" class="required"
			value="<x:out select="$xmlData/data/proposal/basic/domain_value" />"
			label="项目级别" /> <input type="hidden"
			name="proposal/basic/domain_name" id="domain_name"
			value="<x:out select="$xmlData/data/proposal/basic/domain_name" />"
			label="项目级别" /></td>
	</tr>
	<tr>
		<td nowrap align="right" valign="middle"><span class="color_red">*</span>项目类型：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="checkbox" class="do " id="advant_01"
				style="vertical-align: middle;" name="advant" label="国内外学术论坛"
				value="01" /><span style="vertical-align: middle;">国内外学术论坛</span>
		</label> <label> <input type="checkbox" class="do " id="advant_02"
				style="vertical-align: middle;" name="advant" label="技术（产业）研讨与交流会"
				value="02" /><span style="vertical-align: middle;">技术（产业）研讨与交流会</span>
		</label> 
		 <label> <input type="checkbox" class="do " id="advant_03"
				style="vertical-align: middle;" name="advant" label="其他"
				value="03" /><span style="vertical-align: middle;">其他</span>
		</label> 
		<input type="hidden" name="proposal/basic/advant_value"
			id="advant_value" class="required"
			value="<x:out select="$xmlData/data/proposal/basic/advant_value" />"
			label="项目类型" /> <input type="hidden"
			name="proposal/basic/advant_name" id="advant_name"
			value="<x:out select="$xmlData/data/proposal/basic/advant_name" />"
			label="项目类型" /></td>
	</tr>
	<tr>
		<td nowrap width="20%" align="right"><span class="color_red">*</span>项目举办地点（无锡市）：</td>
		<td nowrap colspan="3"><input id="place"
			name="proposal/place" label="项目举办地点" type="text" maxlength="50"
			class="input_css required" style="width: 88%;" 
			value="<x:out select="$xmlData/data/proposal/place" />" /></td>
	</tr>
	
	<tr>
		<td nowrap width="20%" align="right"><span class="color_red">*</span>申报人：</td>
		<td nowrap width="30%"><input 
			name="proposal/sbr_name" label="申报人" type="text" maxlength="20" 
			class="input_css required" style="width: 68%;" 
			value="<x:out select="$xmlData/data/proposal/sbr_name" />" /></td>
		<td nowrap width="20%" align="right"><span class="color_red">*</span>职务：</td>
		<td nowrap width="30%"><input 
			name="proposal/sbr_post" label="申报人职务" type="text" maxlength="20"
			class="input_css required" style="width: 68%;" 
			value="<x:out select="$xmlData/data/proposal/sbr_post" />" /></td>
	</tr>
	
	<tr>
	    <td nowrap width="20%" align="right"><span class="color_red">*</span>手机：</td>
		<td nowrap width="30%"><input 
			name="proposal/sbr_mobile" label="申报人手机" type="text" maxlength="11"
			class="input_css required mobile" style="width: 68%;" 
			value="<x:out select="$xmlData/data/proposal/sbr_mobile" />" /></td>
		<td nowrap align="right" width="20%"><span class="color_red">*</span>申报日期：</td>
		<td nowrap width="30%" ><c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" size="33"
				className="required date" label="申报日期"></cpt:date>

		</td>

	</tr>
	<tr>
		<td nowrap align="right" width="20%"><span class="color_red">*</span>项目开始日期：</td>
		<td nowrap width="30%" ><c:set var="start_date">
				<x:out select="$xmlData/data/proposal/start_date" />
			</c:set> <cpt:date id="start_date" name="proposal/start_date"
				value="${start_date}" size="33"
				className="required date  dateCompare:end_date" label="项目开始日期"></cpt:date>

		</td>
		<td nowrap align="right" width="20%" ><span class="color_red">*</span>项目结束日期：</td>
		<td nowrap width="30%" ><c:set var="end_date">
				<x:out select="$xmlData/data/proposal/end_date" />
			</c:set> <cpt:date id="end_date" name="proposal/end_date"
				className="required date" label="项目结束日期" size="33"
				value="${end_date}"></cpt:date></td>

	</tr>
	<tr>
		<td nowrap width="20%" align="right"><span class="color_red">*</span>交流领域与主题：</td>
		<td nowrap colspan="3"><input id="space_theme"
			name="proposal/space_theme" label="交流领域与主题" type="text" maxlength="50"
			class="input_css required" style="width: 88%;" 
			value="<x:out select="$xmlData/data/proposal/space_theme" />" /></td>
	</tr>
	<tr>
		<td nowrap width="20%" align="right"><span class="color_red">*</span>预计参加活动人数：</td>
		<td nowrap width="30%"><input 
			name="proposal/human_num" label="预计参加活动人数" type="text" maxlength="50" 
			class="input_css required" style="width: 68%;" 
			value="<x:out select="$xmlData/data/proposal/human_num" />" /></td>
		<td nowrap width="20%" align="right"><span class="color_red">*</span>预计参加单位数（家）</td>
		<td nowrap width="30%"><input 
			name="proposal/units_num" label="预计参加单位数" type="text" maxlength="50"
			class="input_css required" style="width: 68%;" 
			value="<x:out select="$xmlData/data/proposal/units_num" />" /></td>
	</tr>
	<tr>
		<td nowrap width="20%" align="right" rowspan="2" class="li_2">主办单位：</td>
		<td nowrap colspan="3"><input id="space_theme"
			name="proposal/zbdw1"  type="text" maxlength="50"  style="width: 88%;" 
			value="<x:out select="$xmlData/data/proposal/zbdw1" />" /></td>
	</tr>
	<tr>
	<td nowrap colspan="3"><input id="space_theme"
			name="proposal/zbdw2"  type="text" maxlength="50"  style="width: 88%;" 
			value="<x:out select="$xmlData/data/proposal/zbdw2" />" /></td>
	</tr>
		<tr>
		<td nowrap width="20%" align="right" rowspan="2" class="li_2">协办单位：</td>
		<td nowrap colspan="3"><input id="space_theme"
			name="proposal/xbdw1"  type="text" maxlength="50"  style="width: 88%;" 
			value="<x:out select="$xmlData/data/proposal/xbdw1" />" /></td>
	</tr>
	<tr>
	<td nowrap colspan="3"><input id="space_theme"
			name="proposal/zbdw2"  type="text" maxlength="50"  style="width: 88%;" 
			value="<x:out select="$xmlData/data/proposal/zbdw2" />" /></td>
	</tr>
		<tr>
		<td nowrap width="20%" align="right" rowspan="2" class="li_2">承担单位：</td>
		<td nowrap colspan="3"><input id="space_theme"
			name="proposal/cddw1"  type="text" maxlength="50"  style="width: 88%;" 
			value="<x:out select="$xmlData/data/proposal/cddw1" />" /></td>
	</tr>
	<tr>
	<td nowrap colspan="3"><input id="space_theme"
			name="proposal/zbdw2"  type="text" maxlength="50"  style="width: 88%;" 
			value="<x:out select="$xmlData/data/proposal/zbdw2" />" /></td>
	</tr>
</table>
<br/>
	<div class="t_bar"><span class="color_red">*</span>专家出席情况</div>
	<table class="t_css" width="100%" border="0" cellpadding="0"
	id="expert" cellspacing="1">
	<tr>
	<td align="right"><span class="color_red">*</span>专家总人数：</td>
	<td><input name="proposal/zj_total" label="专家总人数" type="text" onfocus="InitInput.setNumber(this,7,0,0)"  class="input_css required"  value="<x:out select="$xmlData/data/proposal/zj_total" />" /></td>
	<td align="right"><span class="color_red">*</span>中国专家总人数：</td>
	<td><input name="proposal/zgzj_total" label="中国专家总人数" type="text" onfocus="InitInput.setNumber(this,7,0,0)"  class="input_css required"  value="<x:out select="$xmlData/data/proposal/zgzj_total" />" /></td>
	<td align="right"><span class="color_red">*</span>外国专家总人数：</td>
	<td><input name="proposal/wgzj_total" label="外国专家总人数" type="text" onfocus="InitInput.setNumber(this,7,0,0)"  class="input_css required"  value="<x:out select="$xmlData/data/proposal/wgzj_total" />" /></td>
	</tr>
	</table>
<br/>
<div class="t_bar"><span class="color_red">*</span>项目主要负责人及团队情况</div>
<table id="tblprojects" border="0" cellspacing="0" cellpadding="0" class="table01" width="100%">
	<thead>
		<tr>
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="8%">姓名</th>
			<th class="TblHead" align="center" width="16%">单位</th>
			<th class="TblHead" align="center" width="12%">职称</th>
			<th class="TblHead" align="center" width="13%">职务</th>
			<th class="TblHead" align="center" width="15%">电话</th>
			<th class="TblHead" align="center" width="26%">项目分工/工作内容</th>
		</tr>
	</thead>
	<tbody id="tab">
					<tr style="display:none">
						<td align="center">
							<input type="radio" class="radiobutton"  name="selprojects" >
						</td>
						<td align="center">
							<span name="projects|project[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text" name="projects|project[0]|name" label="姓名 " size="16" class="required input_text " maxlength="20"/>
						</td>
						<td nowrap>
							<input  size="16" name="projects|project[0]|units"  class="required input_text " label="单位" maxlength="50"/>
						</td> 
						<td>
					        <cpt:select id="zhic_[index]" name="projects|project[0]|zhic" key="title" className="selectedWidth" label="职称" onChange="initControlValue(this.id)" value=""></cpt:select>
		                   <input type="hidden" name="projects|project[0]|zhic_value" value="" class="required" label="职称"/>
		                   <input type="hidden" name="projects|project[0]|zhic_name" value=""/>
	        	         </td>
						<td>
							<input size="14" type="text" name="projects|project[0]|post" label="职务"   class="required input_text " maxlength="50"/>
						</td> 
						<td>
							<input size="15" type="text" name="projects|project[0]|phone" label="电话"   class="required input_text " maxlength="25"/>
						</td>
						<td>
							<input size="35" type="text" name="projects|project[0]|work" label="项目分工/工作内容"   class="required input_text " maxlength="50"/>
						</td>
						
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/projects/project" var="project">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center" >
							<input type="radio" class="radiobutton" name="selprojects" >
						</td>
						<td align="center" >
							<span   name="projects/project[${flag}${index}]@seq_no" ><x:out select="$project/@seq_no"/></span> 
						</td>
						<td >
							<input size="16" type="text" name="projects/project[${flag}${index}]/name" label="姓名" maxlength="20" class="required input_text " value="<x:out select="$project/name" />" />
						</td>
						<td nowrap>
		                    <input size="16" type="text" name="projects/project[${flag}${index}]/units" label="单位"   class="required input_text " value="<x:out select="$project/units" />" maxlength="50"/>
						</td> 
						<td>
						<c:set var="zhic"><x:out select="$project/zhic_value" /></c:set>
						<cpt:select id="zhic${index }" name="projects/project[${flag}${index}]/zhic" key="title" className="selectedWidth" onChange="initControlValue(this.id)" value="${zhic }"></cpt:select>
			            <input type="hidden" name="projects/project[${flag}${index}]/zhic_value" value="${zhic }" class="required" label="职称"/>
			            <input type="hidden" name="projects/project[${flag}${index}]/zhic_name" value="<x:out select="$project/zhic_name" />"/>
          			    </td>
						
						<td >
							<input  size="14" type="text" name="projects/project[${flag}${index}]/post" label="职务"   class="required input_text " value="<x:out select="$project/post" />" maxlength="50"/> 
						</td>
						<td >
							<input size="15" type="text" name="projects/project[${flag}${index}]/phone" label="电话"  class="required input_text " value="<x:out select="$project/phone" />" maxlength="25"/> 
						</td>
						<td >
							<input  size="35" type="text" name="projects/project[${flag}${index}]/work" label="项目分工/工作内容"   class="required input_text " value="<x:out select="$project/work" />" maxlength="50"/> 
						</td>
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblprojects");
					</script>
				</tbody>
					</table>
					<br>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblprojects',10,'只能填写10条项目主要负责人及团队情况')){addNewRow('tblprojects');showDateTag('tblprojects');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblprojects','selprojects')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblprojects','selprojects')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblprojects','项目主要负责人及团队情况')">
					</td></tr>
	</table>
	
	<br/>
	<div class="t_bar"><span class="color_red">*</span>主要参加专家情况</div>
<table id="tblexperts" border="0" cellspacing="0" cellpadding="0" class="table01" width="100%">
	<thead>
		<tr>
			<th class="TblHead" align="center" width="5%" nowrap>选择</th>
			<th class="TblHead" align="center" width="5%" nowrap>序号</th>
			<th class="TblHead" align="center" width="8%" nowrap>姓名</th>
			<th class="TblHead" align="center" width="16%" nowrap>单位</th>
			<th class="TblHead" align="center" width="12%" nowrap>职称</th>
			<th class="TblHead" align="center" width="13%" nowrap>职务</th>
			<th class="TblHead" align="center" width="15%" nowrap>电话</th>
			<th class="TblHead" align="center" width="26%" nowrap>研究领域</th>
		</tr>
	</thead>
	<tbody id="tab">
					<tr style="display:none">
						<td align="center">
							<input type="radio" class="radiobutton"  name="selexperts" >
						</td>
						<td align="center">
							<span name="experts|expert[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text" name="experts|expert[0]|name" label="姓名 "  size="16" class="required input_text " maxlength="50"/>
						</td>
						<td nowrap>
							<input  size="16" name="experts|expert[0]|units"  class="required input_text " label="单位" maxlength="50"/>
						</td> 
						<td>
					        <cpt:select id="zhic2_[index]" name="experts|expert[0]|zhic2" key="title" label="职称" className="selectedWidth" onChange="initControlValue(this.id)" value=""></cpt:select>
		                   <input type="hidden" name="experts|expert[0]|zhic2_value" value="" class="required" label="职称"/>
		                   <input type="hidden" name="experts|expert[0]|zhic2_name" value=""/>
	        	         </td>
						<td>
							<input size="14" type="text" name="experts|expert[0]|post" label="职务"   class="required input_text " maxlength="50"/>
						</td> 
						<td>
							<input size="15" type="text" name="experts|expert[0]|phone" label="电话"   class="required input_text " maxlength="25"/>
						</td>
						<td>
							<input size="35" type="text" name="experts|expert[0]|work" label="研究领域"   class="required input_text " maxlength="50"/>
						</td>
						
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/experts/expert" var="expert">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center" >
							<input type="radio" class="radiobutton" name="selexperts" >
						</td>
						<td align="center" >
							<span   name="experts/expert[${flag}${index}]@seq_no" ><x:out select="$expert/@seq_no"/></span> 
						</td>
						<td >
							<input size="16" type="text" name="experts/expert[${flag}${index}]/name" label="姓名"  class="required input_text " value="<x:out select="$expert/name" />" maxlength="50"/>
						</td>
						<td nowrap>
		                    <input size="16" type="text" name="experts/expert[${flag}${index}]/units" label="单位"   class="required input_text " value="<x:out select="$expert/units" />" maxlength="50"/>
						</td> 
						<td>
						<c:set var="zhic2"><x:out select="$expert/zhic2_value" /></c:set>
						<cpt:select id="zhic2${index }" name="experts/expert[${flag}${index}]/zhic2" key="title" className="selectedWidth" onChange="initControlValue(this.id)" value="${zhic2 }"></cpt:select>
			            <input type="hidden" name="experts/expert[${flag}${index}]/zhic2_value" value="${zhic2 }" class="required" label="职称"/>
			            <input type="hidden" name="experts/expert[${flag}${index}]/zhic2_name" value="<x:out select="$expert/zhic2_name" />"/>
          			    </td>
						
						<td >
							<input   size="14"  type="text" name="experts/expert[${flag}${index}]/post" label="职务"   class="required input_text " value="<x:out select="$expert/post" />" maxlength="50"/> 
						</td>
						<td >
							<input size="15"  type="text" name="experts/expert[${flag}${index}]/phone" label="电话"  class="required input_text " value="<x:out select="$expert/phone" />" maxlength="25"/> 
						</td>
						<td >
							<input  size="35"  type="text" name="experts/expert[${flag}${index}]/work" label="研究领域"   class="required input_text " value="<x:out select="$expert/work" />" maxlength="50"/> 
						</td>
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblexperts");
					</script>
				</tbody>
					</table>
					<br>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblexperts',10,'只能填写10条主要参加专家情况')){addNewRow('tblexperts');showDateTag('tblexperts');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblexperts','selexperts')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblexperts','selexperts')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblexperts','主要参加专家情况')">
					</td></tr>
	</table>
	<br/>
	<div class="t_bar"><span class="color_red">*</span>项目概况（字数不少于1000）</div>
    <table id="tblexperts1" border="0" cellspacing="0" cellpadding="0" class="table01" >
    <tr>
    <td class="li_2">
    1、该项目的主要内容；2、开展该项目的目的和意义；3、项目期望效果
    </td>
    </tr>
	<tr>
	<td>
	<textarea  name="proposal/project_situation" rows='9' cols='170' class="required textarea minlength:1000" label="项目概况"><x:out select="$xmlData/data/proposal/project_situation" /></textarea>
	<input type="hidden" name="proposal/project_situation_hidden" id="proposal/project_situation_hidden" value="">
	</td>
	</tr>
	</table>
	
